package cn.smbms.task;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class MyTask1 {
	@Scheduled(cron = "0 * * * * ? ")
	public void taskSelf() {
		String currentTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date());
		System.out.println(currentTime);
		System.out.println("具体的任务实现1！！！");

	}
}
